﻿<%@ Page Title="Repair History" Theme="POSSystem" Language="C#" MasterPageFile="~/EditPages/Popup.Master" AutoEventWireup="true" CodeBehind="RepairHist.aspx.cs" Inherits="WebUI.EditPages.RepairHist" %>

<%@ Register Src="~/Controls/POSControls/RepairListCtrl.ascx" TagName="RepairList" TagPrefix="uc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PopupHeadHolder" runat="server">
    <script type="text/javascript">
        function redoJob() {
            var id = getSelectedItemID<%= lstRepair.ClientID %>();
            if(id != null)
                window.returnValue = id;
            window.close();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PopupToolbarHolder" runat="server">
    <table class="popuptoolbar" width="100%">
        <tr>
            <td style="text-align:left">
                <asp:LinkButton class="tbbutton" ID="btnRedo" ToolTip="Redo Job" runat="server" OnClientClick="return redoJob();" >
                    <img id="Img1" src="~/Images/Redo.png" runat="server" alt="" />
                    <asp:Label ID="label1" runat="server" Text="Redo"></asp:Label>
                </asp:LinkButton>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PopupContentHolder" runat="server">
     <uc:RepairList ID="lstRepair" runat="server" AllowPaging="false" AllowSelecting="true" AllowSorting="true" AllowUpdating="false" 
       SaveOnCommit="false" PageSize="10" Width="100%" ></uc:RepairList>
</asp:Content>
